// restful?
//     接口URL 设计风格
//      get /book
            // /book/:id 
        // post /book  新增
const router=require('koa-router')()
const book = require('../controller/book')

router.get('/book/list',book.getList)
router.get('/book/:id',book.getOne)
router.post('/book',book.add)

module.exports=router